package com.example.yuanboot.model.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "sys_access_log")
public class SysAccessLog {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 请求方式
     */
    @TableField(value = "method")
    private String method;

    /**
     * 请求参数
     */
    @TableField(value = "params")
    private String params;

    /**
     * IP地址
     */
    @TableField(value = "request_ip")
    private String requestIp;

    /**
     * 耗时
     */
    @TableField(value = "time")
    private Long time;

    /**
     * 请求地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 浏览器
     */
    @TableField(value = "browser")
    private String browser;

    /**
     * 请求结果
     */
    @TableField(value = "result")
    private String result;

    /**
     * 状态
     */
    @TableField(value = "state")
    private Byte state;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    public static final String COL_ID = "id";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_METHOD = "method";

    public static final String COL_PARAMS = "params";

    public static final String COL_REQUEST_IP = "request_ip";

    public static final String COL_TIME = "time";

    public static final String COL_ADDRESS = "address";

    public static final String COL_BROWSER = "browser";

    public static final String COL_RESULT = "result";

    public static final String COL_STATE = "state";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_CREATE_TIME = "create_time";
}